//
//  SquareShape1.swift
//  ArchitectGenerics
//
//  Created by 姚胜龙 on 2017/6/27.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

import UIKit

//正方形
class SquareShape1: ShapeProtocol {

    var length:Float
    init(length:Float) {
        self.length = length
    }

    func accept(visitor: ShapeVisitorProtocol) {
        visitor.visite(square: self)
    }
}
